/**
 * 
 */
package org.sensmon.core.datamodel;

import org.extdev.device.ltr.LTR11Channel;

/**
 * @author LAP
 *
 */
public class Sensor {
	private String name;
	private LTR11Channel channel;
	
	public Sensor() {
		this("noname");
	}
	
	public Sensor(String name) {
		this(name, new LTR11Channel());
	}
	
	public Sensor(String name, LTR11Channel channel) {
		setName(name);
		setChannel(channel);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		if(name == null) {
			throw new IllegalArgumentException("Name must be not null");
		}
		this.name = name;
	}

	public LTR11Channel getChannel() {
		return channel;
	}

	public void setChannel(LTR11Channel channel) {
		if(channel == null) {
			throw new IllegalArgumentException("Channel must be not null");
		}
		this.channel = channel;
	}
	
	
}
